﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UsersMaster.master" AutoEventWireup="true"
    CodeBehind="NewItem.aspx.cs" Inherits="SMS.Items.NewItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="UserMainContent" runat="server">
    <div id="search" class="boxed">
        <h2 class="title" dir="rtl">
            <img src="../App_Themes/Theme/images/Add Item.png" class="img" />
            إضافة بضاعة جديدة</h2>
        <div dir="rtl" class="content">
            <table dir="rtl">
                <tr>
                    <td colspan="3" align="left"> 
                        <asp:ValidationSummary runat="server" ID="ItemValidationSummery" CssClass="failureNotification"
                            ValidationGroup="ItemVG" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lblBarCode" AssociatedControlID="txtBarCode" Text=": بـاركـود" />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtBarCode" />
                    </td>
                    <td align="right">
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" Text="Part Number :" />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtPartNumber" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lblName" AssociatedControlID="txtName" Text=": أسـم المنـتـج" />
                    </td>
                    <td align="right">
                        <asp:TextBox runat="server" ID="txtName" />
                    </td>
                    <td align="right">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                            Text="<img src=../Styles/Images/Error.png style=float:right; width=10%; height=10%; />"
                            CssClass="failureNotification" ErrorMessage="الاســم مطلـوب" ValidationGroup="ItemVG" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="Label1" AssociatedControlID="txtMark" Text=": المـاركـة" />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtMark" />
                    </td>
                    <td align="right">
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtBuyingPrice"
                    CssClass="failureNotification" ErrorMessage="Buying Price is required">*</asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label runat="server" ID="lblSellingPrice" AssociatedControlID="txtSellingPrice"
                            Text=": سعـر البـيـع" />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtSellingPrice" />
                    </td>
                    <td align="right">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtSellingPrice"
                            Text="<img src=../Styles/Images/Error.png style=float:right; width=10%; height=10%; />"
                            CssClass="failureNotification" ErrorMessage="سعر البـيـع مطلـوب" ValidationGroup="ItemVG" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label runat="server" ID="Label6" AssociatedControlID="txtManuCountry" Text=": بـلد الصنــع" />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtManuCountry" />
                    </td>
                    <td align="right">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Text="<img src=../Styles/Images/Error.png style=float:right; width=10%; height=10%; />"
                            runat="server" ControlToValidate="txtManuCountry" CssClass="failureNotification"
                            ErrorMessage="بـلد الصنــع" ValidationGroup="ItemVG" />
                    </td>
                </tr>
                <tr>
                    <th colspan="3">
                        <asp:Panel Direction="RightToLeft" HorizontalAlign="Right" GroupingText="اضافة بضاعة جديده في المخزن"
                            runat="server">
                            <asp:UpdatePanel ID="upNewStockItem" runat="server">
                                <ContentTemplate>
                                    <table>
                                        <tr>
                                            <td align="right">
                                                <asp:Label runat="server" ID="Label3" AssociatedControlID="txtQuantity" Text="الكـمــيـة :" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtQuantity" runat="server" />
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator runat="server" ControlToValidate="txtQuantity" Text="<img src=../Styles/Images/Error.png style=float:right; width=10%; height=10%; />"
                                                    CssClass="failureNotification" ErrorMessage="الكـمــيـة" ValidationGroup="ItemVG" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label runat="server" ID="Label4" AssociatedControlID="ddlStock" Text="المــخزن :" />
                                            </td>
                                            <td>
                                                <asp:DropDownList Width="100%" runat="server" ID="ddlStock" />
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label runat="server" ID="Label5" AssociatedControlID="txtMinQuantity" Text="أقل كمـيـة :" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtMinQuantity" runat="server" />
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ValidationGroup="ItemVG"
                                                    Text="<img src=../Styles/Images/Error.png style=float:right; width=10%; height=10%; />"
                                                    ControlToValidate="txtMinQuantity" CssClass="failureNotification" ErrorMessage="أقل كمـيـة مطلـوبة" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:CustomValidator runat="server" ID="cstmVld" ErrorMessage="البضــاعة موجوده"
                                                    ValidationGroup="ItemVG" CssClass="failureNotification" />
                                            </td>
                                            <td>
                                                <asp:Button runat="server" ID="btnAddToStock" Text="أضــافة" OnClick="btnAddToStock_Click"
                                                    ValidationGroup="ItemVG" />
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </asp:Panel>
                    </th>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
